package cqrtplm.log;


import java.util.Date;
import javax.persistence.*;
import lombok.Data;
import java.sql.Timestamp;

/**
 * 差异日志实体类（使用注解简化）
 */
@Data
@Entity
@Table(name = "RT_LOG_DIFFERENCE")
public class RTLogDifference {

    @Id
    @Column(name = "LOGID")
    // 由于使用触发器自动生成ID，这里不需要额外的生成策略注解
    private Long logid;

    @Column(name = "ENTITY_CLASS", nullable = false, length = 50)
    private String entityClass;

    @Column(name = "ENTITY_NAME", length = 50)
    private String entityName;

    @Column(name = "ENTITY_ID", length = 255)
    private String entityId;

    @Column(name = "DIFFERENCES_STR", nullable = false, length = 2000)
    private String differencesStr;

    @Column(name = "F_CREATE_USER_ID", length = 50)
    private String fCreateUserId;

    @Column(name = "F_CREATE_USER_NAME", length = 50)
    private String fCreateUserName;

    @Column(name = "F_CREATE_DATE")
    private Timestamp fCreateDate;

    @Column(name = "MODIFY_SOURE", length = 50)
    private String modifySoure;

    @Column(name = "MODIFY_TYPE", length = 50)
    private String modifyType;

    @Column(name = "REMARKS", length = 500)
    private String remarks;
}
